From: Florian Müllner Date: Tue, 29 Jan 2019 21:53:55 +0000 (+0100) Subject: networkAgent: Fix mobile broadband notifications X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~94 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=91319e3963c24858d7155d963cd0702f248525bb;p=gnome-shell.git networkAgent: Fix mobile broadband notifications Currently their body message is assigned to an undefined variable that isn't used for anything later. Spotted by eslint. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/375 --- diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js index 08697b39a..0dad547dd 100644 --- a/js/ui/components/networkAgent.js +++ b/js/ui/components/networkAgent.js @@ -705,14 +705,14 @@ var NetworkAgent = class { if (hints.indexOf('pin') != -1) { let gsmSetting = connection.get_setting_gsm(); title = _("PIN code required"); - message = _("PIN code is needed for the mobile broadband device"); + body = _("PIN code is needed for the mobile broadband device"); break; } // fall through case 'cdma': case 'bluetooth': title = _("Mobile broadband network password"); - message = _("A password is required to connect to “%s”.").format(connectionSetting.get_id()); + body = _("A password is required to connect to “%s”.").format(connectionSetting.get_id()); break; default: log('Invalid connection type: ' + connectionType);